package com.bauer.base.synchronize;

import com.bauer.base.concurrent.ThreadPoolUtil;

/**
 * @Author ：rui.wei
 * @Date ：Created in 15:18 2019/6/3
 * @Description：
 */
public class SyncMain {

    public static void main(String[] args) {
        SyncObject syncObject  = new SyncObject();
        ThreadPoolUtil.execute(new Runnable() {
            @Override
            public void run() {
                syncObject.add(1,2);
            }
        });

        ThreadPoolUtil.execute(new Runnable() {
            @Override
            public void run() {
                syncObject.addx(1,2);
            }
        });

        WaitNotifyObjec waitNotifyObjec = new WaitNotifyObjec();
    }

}
